using System;
using System.Collections.Generic;
using System.Text;
using Microsoft.SharePoint.Publishing;

namespace Safira.Tools.Sharepoint.Spome
{
    public class ESPPageLayout
    {
        private PageLayout _pageLayout;
        private string _name;
        private string _contentType;

        /// <summary>
        /// Initializes a new instance of the <see cref="ESPPageLayout"/> class.
        /// </summary>
        /// <param name="pLayout">The p layout.</param>
        public ESPPageLayout( PageLayout pLayout )
        {
            _pageLayout = pLayout;
            _name = pLayout.Name;
            _contentType = pLayout.AssociatedContentType.Name;
        }

        /// <summary>
        /// Gets or sets the name.
        /// </summary>
        /// <value>The name.</value>
        public string Name
        {
            get { return _name; }
            set { _name = value; }
        }

        /// <summary>
        /// Gets or sets the type of the content.
        /// </summary>
        /// <value>The type of the content.</value>
        public string ContentType
        {
            get { return _contentType; }
            set { _contentType = value; }
        }
    }
}
